package com.broada.apm.ajax;

import java.util.HashMap;

import com.broada.apm.model.User;

public class AuthResult extends Result {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public void setUser(User user){
        this.put("user", user);
    }
    public void setToken(String token) {
        HashMap<String, Object> meta = getMeta();
        meta.put("token", token);
    }
    public String getToken() {
        return (String) getMeta().get("token");
    }
}
